package com.songdian.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class DirectMessageListener {

    @RabbitListener(queues = "direct_queue")
    public void receive(String id){
        System.out.println("消费者1，已完成消息处理业务(direct_queue)======="  + id);
    }

    @RabbitListener(queues = "direct_queue")
    public void receive1(String id){
        System.out.println("消费者2，已完成消息处理业务(direct_queue)======="  + id);
    }
}
